import 'dart:convert';

/// name : "郭丽"
/// imageUrl : "https://randomuser.me/api/portraits/men/14.jpg"
/// message : "任场直记如离导议老达八格都。包及争压区是家太达文众党。证广结亲全阶质毛标小打青化证今。运步县几它三它从步把程以加无及状。江许许示确定新以无市法必复一单。"

ImageData listFromJson(String str) => ImageData.fromJson(json.decode(str));
String listToJson(ImageData data) => json.encode(data.toJson());
class ImageData {
  ImageData({
      String? name, 
      String? imageUrl, 
      String? message,}){
    _name = name;
    _imageUrl = imageUrl;
    _message = message;
}

  ImageData.fromJson(dynamic json) {
    _name = json['name'];
    _imageUrl = json['imageUrl'];
    _message = json['message'];
  }
  String? _name;
  String? _imageUrl;
  String? _message;
ImageData copyWith({  String? name,
  String? imageUrl,
  String? message,
}) => ImageData(  name: name ?? _name,
  imageUrl: imageUrl ?? _imageUrl,
  message: message ?? _message,
);
  String? get name => _name;
  String? get imageUrl => _imageUrl;
  String? get message => _message;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['name'] = _name;
    map['imageUrl'] = _imageUrl;
    map['message'] = _message;
    return map;
  }

}